package com.fz.entity;

import com.fz.core.BaseEntity;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;

/**
 * <p>
 * 存储上传文件信息
 * </p>
 *
 * @author hyr
 * @since 2025-06-18
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Uploadfile extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 文件MD5值
     */
    private String md5;

    /**
     * 文件大小（字节）
     */
    private Long size;

    /**
     * MIME类型
     */
    private String contentType;

    /**
     * 文件存储路径
     */
    private String path;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    private LocalDateTime updateTime;


    public Uploadfile(String md5, long size, String contentType, String path)
    {
        this.md5=md5;
        this.size=size;
        this.contentType=contentType;
        this.path=path;
    }
}
